<html>
  <head>
	  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>i5ting_ztree_toc:readme</title>
		<link href="toc/style/github-bf51422f4bb36427d391e4b75a1daa083c2d840e.css" media="all" rel="stylesheet" type="text/css"/>
		<link href="toc/style/github2-d731afd4f624c99a4b19ad69f3083cd6d02b81d5.css" media="all" rel="stylesheet" type="text/css"/>
		<link href="toc/css/zTreeStyle/zTreeStyle.css" media="all" rel="stylesheet" type="text/css"/>
	  <style>
		pre {
		    counter-reset: line-numbering;
		    border: solid 1px #d9d9d9;
		    border-radius: 0;
		    background: #fff;
		    padding: 0;
		    line-height: 23px;
		    margin-bottom: 30px;
		    white-space: pre;
		    overflow-x: auto;
		    word-break: inherit;
		    word-wrap: inherit;
		}

		pre a::before {
		  content: counter(line-numbering);
		  counter-increment: line-numbering;
		  padding-right: 1em; /* space after numbers */
		  width: 25px;
		  text-align: right;
		  opacity: 0.7;
		  display: inline-block;
		  color: #aaa;
		  background: #eee;
		  margin-right: 16px;
		  padding: 2px 10px;
		  font-size: 13px;
		  -webkit-touch-callout: none;
		  -webkit-user-select: none;
		  -khtml-user-select: none;
		  -moz-user-select: none;
		  -ms-user-select: none;
		  user-select: none;
		}

		pre a:first-of-type::before {
		  padding-top: 10px;
		}

		pre a:last-of-type::before {
		  padding-bottom: 10px;
		}

		pre a:only-of-type::before {
		  padding: 10px;
		}

		.highlight { background-color: #ffffcc } /* RIGHT */
		</style>
  </head>
  <body>
	  <div>
				<div style='width:25%;'>
						<ul id="tree" class="ztree" style='width:100%'>

						</ul>
				</div>
        <div id='readme' style='width:70%;margin-left:20%;'>
          	<article class='markdown-body'>
            	<h1 id="-">电商后台管理系统数据接口文档</h1>
<ul>
<li><p>接口域名: <code>http://vue-admin-server.duans.top/</code></p>
</li>
<li><p>除<strong>登录</strong>接口和<strong>图片上传</strong>接口外, 其他接口均需登录认证</p>
</li>
<li>将登录凭证通过自动以请求头<code>token</code>提交给数据接口, 即可完成登录认证</li>
</ul>
<h2 id="-">登录模块</h2>
<h3 id="-">登录</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=login&amp;a=login</code></p>
</li>
<li><p>提交方式: <code>POST</code></p>
</li>
<li><p>参数: <code>x-www-form-urlencoded</code></p>
<ul>
<li><code>username:</code> 用户名</li>
<li><code>password</code>: 密码</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<ul>
<li>token为登录凭证</li>
</ul>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;登录成功&quot;,
    &quot;token&quot;:&quot;eyJpZCI6IjEiLCJ1c2VybmFtZSI6ImFkbWluIn0=&quot;
}

</code></pre>
</li>
</ul>
<h3 id="-">获取登录用户信息</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=admin&amp;a=login_info</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数: 无</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;id&quot;:&quot;1&quot;,
        &quot;role_id&quot;:&quot;0&quot;,
        &quot;username&quot;:&quot;admin&quot;,
        &quot;password&quot;:&quot;e10adc3949ba59abbe56e057f20f883e&quot;,
        &quot;avatar&quot;:null,
        &quot;nickname&quot;:&quot;超级管理员&quot;,
        &quot;tel&quot;:&quot;10086&quot;,
        &quot;email&quot;:&quot;10086@10086.com&quot;,
        &quot;status&quot;:&quot;1&quot;,
        &quot;motto&quot;:null,
        &quot;createtime&quot;:&quot;2020-06-03 17:29:10&quot;
    }
}

</code></pre>
</li>
</ul>
<h2 id="-">商品模块</h2>
<h3 id="-">商品列表</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=product&amp;a=lists</code></p>
</li>
<li><p>提交方式: <code>GET</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>page</code>: 页码</li>
<li><code>page_num</code>: 每页显示数据条数, 默认12条</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;list&quot;:[
            {
                &quot;id&quot;:&quot;1&quot;,
                &quot;name&quot;:&quot;红米note8&quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/01.jpg&quot;,
                &quot;price&quot;:&quot;999.00&quot;,
                &quot;description&quot;:&quot; 购机立省100元 (5.1-5.7) Redmi Note8 4800万全场景四摄 4000mAh长续航 高通骁龙665 18W快充  4GB+64GB 梦幻蓝 游戏手机 小米 红米Redmi Note8 4800万全场景四摄 4000mAh长续航 高通骁龙665 18W快充  4GB+64GB 梦幻蓝 游戏手机 小米 红米Redmi Note8 4800万全场景四摄 4000mAh长续航 高通骁龙665 18W快充  4GB+64GB 梦幻蓝 游戏手机 小米 红米Redmi Note8 4800万全场&quot;,
                &quot;market_price&quot;:&quot;1999.00&quot;,
                &quot;brand&quot;:&quot;小米&quot;,
                &quot;category&quot;:&quot;智能手机&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            },
            {
                &quot;id&quot;:&quot;2&quot;,
                &quot;name&quot;:&quot;华为 HUAWEI P40 Pro&quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/02.jpg&quot;,
                &quot;price&quot;:&quot;5988.00&quot;,
                &quot;description&quot;:&quot;华为 HUAWEI P40 Pro 麒麟990 5G SoC芯片 5000万超感知徕卡四摄 50倍数字变焦 8GB+128GB亮黑色全网通5G手机&quot;,
                &quot;market_price&quot;:&quot;6988.00&quot;,
                &quot;brand&quot;:&quot;华为&quot;,
                &quot;category&quot;:&quot;智能手机&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            },
            {
                &quot;id&quot;:&quot;3&quot;,
                &quot;name&quot;:&quot;Apple iPhone 11&quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/03.jpg&quot;,
                &quot;price&quot;:&quot;5999.00&quot;,
                &quot;description&quot;:&quot;Apple iPhone 11 (A2223) 128GB 黑色 移动联通电信4G手机 双卡双待; iPhone爆品限时特惠！大额神券抢购中！iPhone11立减500元，XR256GB黄色特惠低至4699元，XSMax抢券立减500元！超值推荐！ 建议选购换修无忧月付版首月免费，送杀菌率99.9%手机消毒片！自动订阅，随时可取消！&quot;,
                &quot;market_price&quot;:&quot;6999.00&quot;,
                &quot;brand&quot;:&quot;苹果&quot;,
                &quot;category&quot;:&quot;智能手机&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            },
            {
                &quot;id&quot;:&quot;4&quot;,
                &quot;name&quot;:&quot;Apple iPhone 11 Pro Max &quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/04.jpg&quot;,
                &quot;price&quot;:&quot;10899.00&quot;,
                &quot;description&quot;:&quot; Apple iPhone 11 Pro Max (A2220) 256GB 暗夜绿色  移动联通电信4G手机 双卡双待Apple iPhone 11 Pro Max (A2220) 256GB 暗夜绿色  移动联通电信4G手机 双卡双待Apple iPhone 11 Pro Max (A2220) 256GB 暗夜绿色  移动联通电信4G手机 双卡双待Apple iPhone 11 Pro Max (A2220) 256GB 暗夜绿色  移动联通电信4G手机 双卡双待Apple iPhone 11 Pr&quot;,
                &quot;market_price&quot;:&quot;11899.00&quot;,
                &quot;brand&quot;:&quot;苹果&quot;,
                &quot;category&quot;:&quot;智能手机&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            },
            {
                &quot;id&quot;:&quot;5&quot;,
                &quot;name&quot;:&quot;Apple iPhone XS Max&quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/05.jpg&quot;,
                &quot;price&quot;:&quot;6099.00&quot;,
                &quot;description&quot;:&quot;Apple iPhone XS Max (A2104) 64GB 银色 移动联通电信4G手机 双卡双待 XSMax抢券立减500元，享受出众OLED屏幕带来的视觉盛宴，后置双摄轻松美拍，玻璃外观耀眼夺目！超值推荐！ 建议选购换修无忧月付版首月免费！自动订阅，随时可取消！&quot;,
                &quot;market_price&quot;:&quot;7099.00&quot;,
                &quot;brand&quot;:&quot;苹果&quot;,
                &quot;category&quot;:&quot;智能手机&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            },
            {
                &quot;id&quot;:&quot;6&quot;,
                &quot;name&quot;:&quot;Apple iPad 平板电脑&quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/06.jpg&quot;,
                &quot;price&quot;:&quot;2999.00&quot;,
                &quot;description&quot;:&quot;Apple iPad 平板电脑 2019年新款10.2英寸（128G WLAN版\/iPadOS系统\/Retina显示屏\/MW792CH\/A）金色 【经典爆款iPad，10.2英寸大屏娱乐影音，下单送VIPKID少儿英语体验课】网课学习，娱乐影音，你值得拥有！前往iPad会场》》 建议选购换修无忧月付版首月免费！自动订阅，随时可取消！&quot;,
                &quot;market_price&quot;:&quot;3999.00&quot;,
                &quot;brand&quot;:&quot;苹果&quot;,
                &quot;category&quot;:&quot;数码家电&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            },
            {
                &quot;id&quot;:&quot;7&quot;,
                &quot;name&quot;:&quot;Apple 2020新款mac笔记本&quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/07.jpg&quot;,
                &quot;price&quot;:&quot;7999.00&quot;,
                &quot;description&quot;:&quot;Apple 2020新款 MacBook Air 13.3 Retina屏 十代i3 8G 256G SSD 银色 笔记本电脑 轻薄本 MWTK2CH\/A 【2020新款MacBookAir现货放量，购新赠多重好礼，D32券后低至5778！】办公当然够专业！够轻快！别说你不心动哟&quot;,
                &quot;market_price&quot;:&quot;8999.00&quot;,
                &quot;brand&quot;:&quot;苹果&quot;,
                &quot;category&quot;:&quot;笔记本&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            },
            {
                &quot;id&quot;:&quot;8&quot;,
                &quot;name&quot;:&quot;Apple Watch Series 5智能手表&quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/08.jpg&quot;,
                &quot;price&quot;:&quot;3499.00&quot;,
                &quot;description&quot;:&quot;Apple Watch Series 5智能手表（GPS款 44毫米深空灰色铝金属表壳 黑色运动型表带 MWVF2CH\/A) 【宅出健康，安全出行！】【AppleWatch低至1399！】【AppleMusic新用户再享3个月试用！】4代官网直降1000起，稀缺货源，速抢！ 建议选购官方 AppleCare+ 版，官方保2年含意外-低价换新、电池损耗-免费换新&quot;,
                &quot;market_price&quot;:&quot;4499.00&quot;,
                &quot;brand&quot;:&quot;苹果&quot;,
                &quot;category&quot;:&quot;智能手机&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            },
            {
                &quot;id&quot;:&quot;9&quot;,
                &quot;name&quot;:&quot;OPPO Ace2 8+128&quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/09.jpg&quot;,
                &quot;price&quot;:&quot;3999.00&quot;,
                &quot;description&quot;:&quot;OPPO Ace2 8+128 月岩灰双模5G 185g超薄机身 65W超级闪充 40W无线闪充 90Hz电竞屏高通骁龙865游戏智能手机&quot;,
                &quot;market_price&quot;:&quot;4999.00&quot;,
                &quot;brand&quot;:&quot;OPPO&quot;,
                &quot;category&quot;:&quot;智能手机&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            },
            {
                &quot;id&quot;:&quot;10&quot;,
                &quot;name&quot;:&quot;OPPO A92s 120Hz畅感屏&quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/10.jpg&quot;,
                &quot;price&quot;:&quot;2199.00&quot;,
                &quot;description&quot;:&quot; OPPO A92s 120Hz畅感屏 前置双摄夜景自拍 侧边指纹 6GB+128GB 私语白 双模5G 全面屏拍照智能手机&quot;,
                &quot;market_price&quot;:&quot;3199.00&quot;,
                &quot;brand&quot;:&quot;OPPO&quot;,
                &quot;category&quot;:&quot;智能手机&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            },
            {
                &quot;id&quot;:&quot;11&quot;,
                &quot;name&quot;:&quot;vivo X30 5G&quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/11.jpg&quot;,
                &quot;price&quot;:&quot;3298.00&quot;,
                &quot;description&quot;:&quot;vivo X30 5G 秘银 8GB+128GB 双模5G 20倍变焦 50mm专业人像镜头 全网通智慧旗舰手机 【五一换5G！限量送小熊电热饭盒！享24期分期免息！购机赠W7蓝牙耳机！今日下单再加赠半年延保！】&quot;,
                &quot;market_price&quot;:&quot;3298.00&quot;,
                &quot;brand&quot;:&quot;VIVO&quot;,
                &quot;category&quot;:&quot;智能手机&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            },
            {
                &quot;id&quot;:&quot;12&quot;,
                &quot;name&quot;:&quot;vivo S5 8GB+128GB&quot;,
                &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/12.jpg&quot;,
                &quot;price&quot;:&quot;1998.00&quot;,
                &quot;description&quot;:&quot;vivo S5 8GB+128GB 冰岛恋歌 前置3200万写真级自拍 4800万菱感四摄极点屏手机 全网通4G手机 【享12期免息！赠W7蓝牙耳机！】写真级自拍，22.5W闪充！&quot;,
                &quot;market_price&quot;:&quot;2998.00&quot;,
                &quot;brand&quot;:&quot;VIVO&quot;,
                &quot;category&quot;:&quot;智能手机&quot;,
                &quot;sales_volume&quot;:&quot;999&quot;
            }],
        &quot;total&quot;:&quot;64&quot;
    }
}
</code></pre>
</li>
</ul>
<h3 id="-">新增商品</h3>
<ul>
<li>接口地址: <code>/apis/index.php?c=product&amp;a=add</code></li>
<li>提交方式: <code>POST</code></li>
<li>参数: <code>x-www-form-urlencoded</code><ul>
<li>name: 商品名称</li>
<li>bid: 品牌id</li>
<li>cid: 分类id</li>
<li>cover: 图片地址</li>
<li>price: 零售价格</li>
<li>market_price: 市场价格</li>
<li>sale_volume: 销量</li>
<li>description: 商品描述</li>
<li>introduce: 商品介绍</li>
<li>status: 状态(1上架, 2下架)</li>
</ul>
</li>
<li>返回数据: json</li>
</ul>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
<h3 id="-">更新商品</h3>
<ul>
<li>接口地址: <code>/apis/index.php?c=product&amp;a=update&amp;id=:id</code></li>
<li>提交方式: <code>POST</code></li>
<li>参数: <code>x-www-form-urlencoded</code><ul>
<li>name: 商品名称</li>
<li>bid: 品牌id</li>
<li>cid: 分类id</li>
<li>cover: 图片地址</li>
<li>price: 零售价格</li>
<li>market_price: 市场价格</li>
<li>sale_volume: 销量</li>
<li>description: 商品描述</li>
<li>introduce: 商品介绍</li>
<li>status: 状态(1上架, 2下架)</li>
</ul>
</li>
<li>返回数据: json</li>
</ul>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
<h3 id="-">商品详情</h3>
<ul>
<li>接口地址: <code>/apis/index.php?c=product&amp;a=detail</code></li>
<li>提交方式: <code>GET</code></li>
<li>参数: <ul>
<li>id: 商品id</li>
</ul>
</li>
<li>返回数据: <code>json</code></li>
</ul>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;id&quot;:&quot;2&quot;,
        &quot;cid&quot;:&quot;5&quot;,
        &quot;bid&quot;:&quot;7&quot;,
        &quot;name&quot;:&quot;华为 HUAWEI P40 Pro&quot;,
        &quot;brand&quot;:&quot;华为&quot;,
        &quot;category&quot;:&quot;智能手机&quot;,
        &quot;cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/02.jpg&quot;,
        &quot;imgs&quot;:[
            &quot;http:\/\/vue-admin-server.com\/uploads\/products\/02\/01.jpg&quot;,
            &quot;http:\/\/vue-admin-server.com\/uploads\/products\/02\/02.jpg&quot;,
            &quot;http:\/\/vue-admin-server.com\/uploads\/products\/02\/03.jpg&quot;,
            &quot;http:\/\/vue-admin-server.com\/uploads\/products\/02\/04.jpg&quot;],
        &quot;colors&quot;:[
            &quot;土豪金&quot;,
            &quot;月光白&quot;,
            &quot;爵士黑&quot;,
            &quot;玫瑰金&quot;,
            &quot;星空灰&quot;],
        &quot;versions&quot;:[
            &quot;官方标配&quot;,
            &quot;移动定制&quot;,
            &quot;联通定制&quot;,
            &quot;电信定制&quot;,
            &quot;全网通&quot;],
        &quot;price&quot;:&quot;5988.00&quot;,
        &quot;market_price&quot;:&quot;6988.00&quot;,
        &quot;sales_volume&quot;:&quot;999&quot;,
        &quot;description&quot;:&quot;华为 HUAWEI P40 Pro 麒麟990 5G SoC芯片 5000万超感知徕卡四摄 50倍数字变焦 8GB+128GB亮黑色全网通5G手机&quot;,
        &quot;introduce&quot;:&quot;&lt;ul class=&quot;p-parameter-list list-paddingleft-2&quot; style=&quot;list-style-type: none;&quot;&gt;&lt;li&gt;&lt;p&gt;品牌：&amp;nbsp;&lt;a href=&quot;https:\/\/list.jd.com\/list.html?cat=9987,653,655&amp;ev=exbrand_8557&quot; target=&quot;_blank&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(94, 105, 173); text-decoration-line: none;&quot;&gt;华为（HUAWEI）&lt;\/a&gt;&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;商品名称：华为P40 Pro&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;商品编号：100012015134&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;商品毛重：0.54kg&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;商品产地：中国大陆&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;CPU型号：麒麟990 5G&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;运行内存：8GB&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;机身存储：128GB&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;存储卡：NM存储卡&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;摄像头数量：后置四摄&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;后摄主摄像素：5000万像素&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;前摄主摄像素：3200万像素&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;主屏幕尺寸（英寸）：6.58英寸&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;分辨率：全高清FHD+&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;屏幕比例：19.6~20:9&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;屏幕前摄组合：其他&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;充电器：10V\/4A；5V\/2A；9V\/2A&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;热点：液冷散热，人脸识别，无线充电，快速充电，防水防尘，NFC，屏幕指纹，曲面屏，5G，超高屏占比，3D(ToF或结构光)，屏幕高刷新率&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;操作系统：其它OS&lt;\/p&gt;&lt;\/li&gt;&lt;li&gt;&lt;p&gt;游戏配置：液冷散热&lt;\/p&gt;&lt;\/li&gt;&lt;\/ul&gt;&lt;p&gt;&lt;img src=&quot;http:\/\/img20.360buyimg.com\/vc\/jfs\/t1\/88739\/12\/16707\/143879\/5e7cb464E78b563f2\/ddcc13cf6f892924.jpg&quot;\/&gt;&lt;\/p&gt;&lt;p&gt;&lt;img src=&quot;http:\/\/img20.360buyimg.com\/vc\/jfs\/t1\/111221\/10\/2079\/5081729\/5e9eb58cEf4cab181\/897c932a45eafd80.jpg&quot;\/&gt;&lt;\/p&gt;&quot;,
        &quot;status&quot;:&quot;1&quot;,
        &quot;hits&quot;:&quot;0&quot;,
        &quot;createtime&quot;:&quot;2020-05-05 17:22:53&quot;
    }
}

</code></pre>
<h3 id="-">删除商品</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=product&amp;a=del</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数</p>
<ul>
<li>id: 商品id</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h2 id="-">品牌模块</h2>
<h3 id="-">品牌列表</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=brand&amp;a=lists</code></p>
</li>
<li><p>提交方式: <code>GET</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>page</code>: 页码</li>
<li><code>page_num</code>: 每页显示数据条数, 默认12条</li>
<li><code>nopage</code>: <code>yes</code>, 表示不分页; 可选值</li>
<li><code>cate_id</code>:分类id; 可选值</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:[
        {
            &quot;id&quot;:&quot;1&quot;,
            &quot;cate_id&quot;:&quot;5&quot;,
            &quot;brand_name&quot;:&quot;小米&quot;,
            &quot;icon&quot;:null,
            &quot;createtime&quot;:null
        },
        {
            &quot;id&quot;:&quot;2&quot;,
            &quot;cate_id&quot;:&quot;3&quot;,
            &quot;brand_name&quot;:&quot;格力&quot;,
            &quot;icon&quot;:null,
            &quot;createtime&quot;:null
        },
        {
            &quot;id&quot;:&quot;3&quot;,
            &quot;cate_id&quot;:&quot;4&quot;,
            &quot;brand_name&quot;:&quot;联想&quot;,
            &quot;icon&quot;:null,
            &quot;createtime&quot;:null
        },
        {
            &quot;id&quot;:&quot;4&quot;,
            &quot;cate_id&quot;:&quot;2&quot;,
            &quot;brand_name&quot;:&quot;苹果&quot;,
            &quot;icon&quot;:null,
            &quot;createtime&quot;:null
        },
        {
            &quot;id&quot;:&quot;5&quot;,
            &quot;cate_id&quot;:&quot;5&quot;,
            &quot;brand_name&quot;:&quot;oppo&quot;,
            &quot;icon&quot;:null,
            &quot;createtime&quot;:null
        },
        {
            &quot;id&quot;:&quot;6&quot;,
            &quot;cate_id&quot;:&quot;5&quot;,
            &quot;brand_name&quot;:&quot;vivo&quot;,
            &quot;icon&quot;:null,
            &quot;createtime&quot;:null
        },
        {
            &quot;id&quot;:&quot;7&quot;,
            &quot;cate_id&quot;:&quot;1&quot;,
            &quot;brand_name&quot;:&quot;华为&quot;,
            &quot;icon&quot;:null,
            &quot;createtime&quot;:null
        }]
}

</code></pre>
</li>
</ul>
<h3 id="-">新增品牌</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=brand&amp;a=add</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数: <code>x-www-form-urlencoded</code></p>
<ul>
<li><code>brand_name</code>: 品牌名称</li>
<li><code>cate_id</code>: 所属分类id</li>
<li>icon: 品牌图片</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">更新品牌</h3>
<ul>
<li>接口地址: <code>/apis/index.php?c=brand&amp;a=update&amp;id=:id</code></li>
<li>请求方式: <code>POST</code></li>
<li><p>参数: <code>x-www-form-urlencoded</code></p>
<ul>
<li><code>brand_name</code>: 品牌名称</li>
<li><code>cate_id</code>: 所属分类id</li>
<li>icon: 品牌图片</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">获取品牌信息</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=brand&amp;a=detail</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>id</code>: 品牌id</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;id&quot;:&quot;1&quot;,
        &quot;cate_id&quot;:&quot;5&quot;,
        &quot;brand_name&quot;:&quot;小米&quot;,
        &quot;icon&quot;:null,
        &quot;createtime&quot;:null
    }
}

</code></pre>
</li>
</ul>
<h3 id="-">删除品牌</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=brand&amp;a=del</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数</p>
<ul>
<li>id: 品牌id</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h2 id="-">分类模块</h2>
<h3 id="-">分类列表</h3>
<ul>
<li>接口地址: <code>/apis/index.php?c=category&amp;a=lists</code></li>
<li>请求方式: <code>GET</code></li>
<li><p>参数: 无</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:[
        {
            &quot;id&quot;:&quot;1&quot;,
            &quot;cate_name&quot;:&quot;热门推荐&quot;,
            &quot;icon&quot;:null,
            &quot;level&quot;:&quot;1&quot;,
            &quot;pid&quot;:&quot;0&quot;,
            &quot;createtime&quot;:null
        },
        {
            &quot;id&quot;:&quot;2&quot;,
            &quot;cate_name&quot;:&quot;国际品牌&quot;,
            &quot;icon&quot;:null,
            &quot;level&quot;:&quot;1&quot;,
            &quot;pid&quot;:&quot;0&quot;,
            &quot;createtime&quot;:null
        },
        {
            &quot;id&quot;:&quot;3&quot;,
            &quot;cate_name&quot;:&quot;数码家电&quot;,
            &quot;icon&quot;:null,
            &quot;level&quot;:&quot;1&quot;,
            &quot;pid&quot;:&quot;0&quot;,
            &quot;createtime&quot;:null
        },
        {
            &quot;id&quot;:&quot;4&quot;,
            &quot;cate_name&quot;:&quot;每日特价&quot;,
            &quot;icon&quot;:null,
            &quot;level&quot;:&quot;1&quot;,
            &quot;pid&quot;:&quot;0&quot;,
            &quot;createtime&quot;:null
        },
        {
            &quot;id&quot;:&quot;5&quot;,
            &quot;cate_name&quot;:&quot;智能手机&quot;,
            &quot;icon&quot;:null,
            &quot;level&quot;:&quot;1&quot;,
            &quot;pid&quot;:&quot;0&quot;,
            &quot;createtime&quot;:null
        }]
}
</code></pre>
</li>
</ul>
<h3 id="-">新增分类</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=category&amp;a=add</code></p>
</li>
<li><p>请求方式: <code>POST</code></p>
</li>
<li><p>参数</p>
<ul>
<li><code>pid</code>: 父级分类, 0位顶级分类</li>
<li><code>cate_name</code>: 分类名称</li>
<li><code>icon</code>: 分类图片</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">更新分类</h3>
<ul>
<li>接口地址: <code>/apis/index.php?c=category&amp;a=update&amp;id=:id</code></li>
<li>请求方式: <code>POST</code></li>
<li>参数<ul>
<li><code>pid</code>: 父级分类</li>
<li><code>cate_name</code>: 分类名称</li>
<li><code>icon</code>: 分类图片</li>
</ul>
</li>
<li>返回数据: <code>json</code></li>
</ul>
<h3 id="-">获取分类信息</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=category&amp;a=detail</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数</p>
<ul>
<li>id: 分类id</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">删除分类</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=category&amp;a=del</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数</p>
<ul>
<li>id: 分类id</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h2 id="-">订单模块</h2>
<h3 id="-">订单列表</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=order&amp;a=lists</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>请求参数</p>
<ul>
<li><code>page</code>: 页面, 默认1</li>
<li><code>page_num</code>:  没有显示数据条数, 默认12</li>
</ul>
</li>
<li><p>参数</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:[
        {
            &quot;id&quot;:&quot;7&quot;,
            &quot;order_no&quot;:&quot;202006121202365ee2fe5cde039&quot;,
            &quot;user_id&quot;:&quot;5&quot;,
            &quot;consignee&quot;:&quot;张三&quot;,
            &quot;tel&quot;:&quot;18710950668&quot;,
            &quot;postcode&quot;:null,
            &quot;amount&quot;:&quot;6987.00&quot;,
            &quot;status&quot;:&quot;1&quot;,
            &quot;pay_way&quot;:&quot;2&quot;,
            &quot;pay_status&quot;:&quot;1&quot;,
            &quot;province&quot;:&quot;广东省&quot;,
            &quot;city&quot;:&quot;河源市&quot;,
            &quot;county&quot;:&quot;紫金县&quot;,
            &quot;address&quot;:&quot;电子一路石油大学&quot;,
            &quot;createtime&quot;:&quot;2020-06-12 12:02:36&quot;,
            &quot;items&quot;:[
                {
                    &quot;id&quot;:&quot;10&quot;,
                    &quot;order_id&quot;:&quot;7&quot;,
                    &quot;product_id&quot;:&quot;1&quot;,
                    &quot;product_name&quot;:&quot;红米note8&quot;,
                    &quot;product_cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/01.jpg&quot;,
                    &quot;product_num&quot;:&quot;1&quot;,
                    &quot;product_price&quot;:&quot;999.00&quot;,
                    &quot;remark&quot;:&quot;土豪金;移动定制&quot;,
                    &quot;createtime&quot;:&quot;2020-06-12 12:02:36&quot;
                },
                {
                    &quot;id&quot;:&quot;11&quot;,
                    &quot;order_id&quot;:&quot;7&quot;,
                    &quot;product_id&quot;:&quot;2&quot;,
                    &quot;product_name&quot;:&quot;华为 HUAWEI P40 Pro&quot;,
                    &quot;product_cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/02.jpg&quot;,
                    &quot;product_num&quot;:&quot;1&quot;,
                    &quot;product_price&quot;:&quot;5988.00&quot;,
                    &quot;remark&quot;:&quot;爵士黑;联通定制&quot;,
                    &quot;createtime&quot;:&quot;2020-06-12 12:02:36&quot;
                }]
        },
        {
            &quot;id&quot;:&quot;8&quot;,
            &quot;order_no&quot;:&quot;202006121203135ee2fe814b8cb&quot;,
            &quot;user_id&quot;:&quot;5&quot;,
            &quot;consignee&quot;:&quot;李四&quot;,
            &quot;tel&quot;:&quot;18710950889&quot;,
            &quot;postcode&quot;:null,
            &quot;amount&quot;:&quot;11498.00&quot;,
            &quot;status&quot;:&quot;1&quot;,
            &quot;pay_way&quot;:&quot;1&quot;,
            &quot;pay_status&quot;:&quot;1&quot;,
            &quot;province&quot;:&quot;陕西省&quot;,
            &quot;city&quot;:&quot;西安市&quot;,
            &quot;county&quot;:&quot;雁塔区&quot;,
            &quot;address&quot;:&quot;电子正街&quot;,
            &quot;createtime&quot;:&quot;2020-06-12 12:03:13&quot;,
            &quot;items&quot;:[
                {
                    &quot;id&quot;:&quot;13&quot;,
                    &quot;order_id&quot;:&quot;8&quot;,
                    &quot;product_id&quot;:&quot;7&quot;,
                    &quot;product_name&quot;:&quot;Apple 2020新款mac笔记本&quot;,
                    &quot;product_cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/07.jpg&quot;,
                    &quot;product_num&quot;:&quot;1&quot;,
                    &quot;product_price&quot;:&quot;7999.00&quot;,
                    &quot;remark&quot;:&quot;土豪金;官方标配&quot;,
                    &quot;createtime&quot;:&quot;2020-06-12 12:03:13&quot;
                },
                {
                    &quot;id&quot;:&quot;12&quot;,
                    &quot;order_id&quot;:&quot;8&quot;,
                    &quot;product_id&quot;:&quot;8&quot;,
                    &quot;product_name&quot;:&quot;Apple Watch Series 5智能手表&quot;,
                    &quot;product_cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/08.jpg&quot;,
                    &quot;product_num&quot;:&quot;1&quot;,
                    &quot;product_price&quot;:&quot;3499.00&quot;,
                    &quot;remark&quot;:&quot;土豪金;官方标配&quot;,
                    &quot;createtime&quot;:&quot;2020-06-12 12:03:13&quot;
                }]
        }]
}

</code></pre>
</li>
</ul>
<h3 id="-">订单详情</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=order&amp;a=detail</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>请求参数</p>
<ul>
<li>id: 订单id</li>
</ul>
</li>
<li><p>参数</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;id&quot;:&quot;7&quot;,
        &quot;order_no&quot;:&quot;202006121202365ee2fe5cde039&quot;,
        &quot;user_id&quot;:&quot;5&quot;,
        &quot;consignee&quot;:&quot;张三&quot;,
        &quot;tel&quot;:&quot;18710950668&quot;,
        &quot;postcode&quot;:null,
        &quot;amount&quot;:&quot;6987.00&quot;,
        &quot;status&quot;:&quot;1&quot;,
        &quot;pay_way&quot;:&quot;2&quot;,
        &quot;pay_status&quot;:&quot;1&quot;,
        &quot;province&quot;:&quot;广东省&quot;,
        &quot;city&quot;:&quot;河源市&quot;,
        &quot;county&quot;:&quot;紫金县&quot;,
        &quot;address&quot;:&quot;电子一路石油大学&quot;,
        &quot;createtime&quot;:&quot;2020-06-12 12:02:36&quot;,
        &quot;items&quot;:[
            {
                &quot;id&quot;:&quot;10&quot;,
                &quot;order_id&quot;:&quot;7&quot;,
                &quot;product_id&quot;:&quot;1&quot;,
                &quot;product_name&quot;:&quot;红米note8&quot;,
                &quot;product_cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/01.jpg&quot;,
                &quot;product_num&quot;:&quot;1&quot;,
                &quot;product_price&quot;:&quot;999.00&quot;,
                &quot;remark&quot;:&quot;土豪金;移动定制&quot;,
                &quot;createtime&quot;:&quot;2020-06-12 12:02:36&quot;
            },
            {
                &quot;id&quot;:&quot;11&quot;,
                &quot;order_id&quot;:&quot;7&quot;,
                &quot;product_id&quot;:&quot;2&quot;,
                &quot;product_name&quot;:&quot;华为 HUAWEI P40 Pro&quot;,
                &quot;product_cover&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/products\/02.jpg&quot;,
                &quot;product_num&quot;:&quot;1&quot;,
                &quot;product_price&quot;:&quot;5988.00&quot;,
                &quot;remark&quot;:&quot;爵士黑;联通定制&quot;,
                &quot;createtime&quot;:&quot;2020-06-12 12:02:36&quot;
            }]
    }
}

</code></pre>
</li>
</ul>
<h3 id="-">更新订单状态</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=order&amp;a=update&amp;id=:id</code></p>
</li>
<li><p>请求方式: <code>POST</code></p>
</li>
<li><p>请求参数</p>
<ul>
<li>status: 1(未发货), 2(已发货)</li>
</ul>
</li>
<li><p>参数</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
  &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h2 id="-">广告位管理</h2>
<h3 id="-">广告位列表</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=order&amp;a=lists</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>请求参数</p>
<ul>
<li><code>page</code>: 页码, 默认为1</li>
<li><code>paeg_num</code>: 每页显示数据条数, 默认12</li>
</ul>
</li>
<li><p>参数</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:[
        {
            &quot;id&quot;:&quot;1&quot;,
            &quot;page&quot;:&quot;index&quot;,
            &quot;name&quot;:&quot;淘小铺&quot;,
            &quot;title&quot;:&quot;淘小铺&quot;,
            &quot;img&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/adv\/adv-03.jpg&quot;,
            &quot;url&quot;:&quot;http:\/\/www.taobao.com&quot;,
            &quot;status&quot;:&quot;1&quot;,
            &quot;createtime&quot;:&quot;2020-05-18 17:02:35&quot;
        },
        {
            &quot;id&quot;:&quot;2&quot;,
            &quot;page&quot;:&quot;index&quot;,
            &quot;name&quot;:&quot;生鲜超级品类日&quot;,
            &quot;title&quot;:&quot;生鲜超级品类日&quot;,
            &quot;img&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/adv\/adv-04.webp&quot;,
            &quot;url&quot;:&quot;http:\/\/jd.com&quot;,
            &quot;status&quot;:&quot;1&quot;,
            &quot;createtime&quot;:&quot;2020-05-18 17:03:33&quot;
        }]
}

</code></pre>
</li>
</ul>
<h3 id="-">广告位详情</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=order&amp;a=detail</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>请求参数</p>
<ul>
<li>id: 订单id</li>
</ul>
</li>
<li><p>参数</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;id&quot;:&quot;1&quot;,
        &quot;page&quot;:&quot;index&quot;,
        &quot;name&quot;:&quot;淘小铺&quot;,
        &quot;title&quot;:&quot;淘小铺&quot;,
        &quot;img&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/adv\/adv-03.jpg&quot;,
        &quot;url&quot;:&quot;http:\/\/www.taobao.com&quot;,
        &quot;status&quot;:&quot;1&quot;,
        &quot;createtime&quot;:&quot;2020-05-18 17:02:35&quot;
    }
}

</code></pre>
</li>
</ul>
<h3 id="-">更新广告位</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=order&amp;a=update&amp;id=:id</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>请求参数</p>
<ul>
<li>id: 广告位id</li>
</ul>
</li>
<li><p>参数</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">删除广告位</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=order&amp;a=del</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>请求参数</p>
<ul>
<li>id: 订单id</li>
</ul>
</li>
<li><p>参数</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h2 id="-">数据统计</h2>
<h3 id="-">月销量统计</h3>
<ul>
<li>接口地址: <code>/apis/index.php?c=charts&amp;a=index</code></li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数: 无</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:[
        {
            &quot;total&quot;:&quot;100000&quot;
        },
        {
            &quot;total&quot;:&quot;990000&quot;
        },
        {
            &quot;total&quot;:&quot;220000&quot;
        },
        {
            &quot;total&quot;:&quot;132000&quot;
        },
        {
            &quot;total&quot;:&quot;200000&quot;
        },
        {
            &quot;total&quot;:&quot;409000&quot;
        },
        {
            &quot;total&quot;:&quot;590008&quot;
        },
        {
            &quot;total&quot;:&quot;600010&quot;
        },
        {
            &quot;total&quot;:&quot;200000&quot;
        },
        {
            &quot;total&quot;:&quot;800000&quot;
        },
        {
            &quot;total&quot;:&quot;600000&quot;
        },
        {
            &quot;total&quot;:&quot;400000&quot;
        }]
}

</code></pre>
</li>
</ul>
<h2 id="-">管理员模块</h2>
<h3 id="-">重置密码</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=admin&amp;a=reset_pwd</code></p>
</li>
<li><p>请求方式: <code>POST</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>password</code>: 登录密码</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">获取登录信息</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=admin&amp;a=login_info</code></p>
</li>
<li><p>请求方式: <code>get</code></p>
</li>
<li><p>参数: 无</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;id&quot;:&quot;1&quot;,
        &quot;role_id&quot;:&quot;0&quot;,
        &quot;username&quot;:&quot;admin&quot;,
        &quot;password&quot;:&quot;e10adc3949ba59abbe56e057f20f883e&quot;,
        &quot;avatar&quot;:null,
        &quot;nickname&quot;:&quot;超级管理员&quot;,
        &quot;tel&quot;:&quot;10086&quot;,
        &quot;email&quot;:&quot;10086@10086.com&quot;,
        &quot;status&quot;:&quot;1&quot;,
        &quot;motto&quot;:null,
        &quot;createtime&quot;:&quot;2020-06-03 17:29:10&quot;
    }
}
</code></pre>
</li>
</ul>
<h3 id="-">管理员列表</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=admin&amp;a=lists</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>page</code>: 页码, 默认值1</li>
<li><code>page_num</code>: 每页显示数据条数, 默认值12</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;list&quot;:[
            {
                &quot;id&quot;:&quot;1&quot;,
                &quot;role_id&quot;:&quot;0&quot;,
                &quot;username&quot;:&quot;admin&quot;,
                &quot;password&quot;:&quot;e10adc3949ba59abbe56e057f20f883e&quot;,
                &quot;avatar&quot;:null,
                &quot;nickname&quot;:&quot;超级管理员&quot;,
                &quot;tel&quot;:&quot;10086&quot;,
                &quot;email&quot;:&quot;10086@10086.com&quot;,
                &quot;status&quot;:&quot;1&quot;,
                &quot;motto&quot;:null,
                &quot;createtime&quot;:&quot;2020-06-03 17:29:10&quot;
            }],
        &quot;total&quot;:&quot;1&quot;
    }
}

</code></pre>
</li>
</ul>
<h3 id="-">新增管理员</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=admin&amp;a=add</code></p>
</li>
<li><p>请求方式: <code>POST</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>username</code>: 登录账号</li>
<li><code>password</code>: 登录密码</li>
<li><code>nickname</code>: 昵称</li>
<li><code>tel</code>: 联系电话</li>
<li><code>email</code>: 电子邮箱</li>
<li>avatar: 头像</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">更新管理员</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=admin&amp;a=update&amp;id=:id</code></p>
</li>
<li><p>请求方式: <code>POST</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>username</code>: 登录账号</li>
<li><code>password</code>: 登录密码</li>
<li><code>nickname</code>: 昵称</li>
<li><code>tel</code>: 联系电话</li>
<li><code>email</code>: 电子邮箱</li>
<li>avatar: 头像</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">获取管理员信息</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=admin&amp;a=detail</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数:</p>
<ul>
<li>id: 管理员id</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;id&quot;:&quot;1&quot;,
        &quot;role_id&quot;:&quot;0&quot;,
        &quot;username&quot;:&quot;admin&quot;,
        &quot;password&quot;:&quot;e10adc3949ba59abbe56e057f20f883e&quot;,
        &quot;avatar&quot;:null,
        &quot;nickname&quot;:&quot;超级管理员&quot;,
        &quot;tel&quot;:&quot;10086&quot;,
        &quot;email&quot;:&quot;10086@10086.com&quot;,
        &quot;status&quot;:&quot;1&quot;,
        &quot;motto&quot;:null,
        &quot;createtime&quot;:&quot;2020-06-03 17:29:10&quot;
    }
}
</code></pre>
</li>
</ul>
<h2 id="-">会员模块</h2>
<h3 id="-">会员列表</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=user&amp;a=lists</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>page</code>: 页码, 默认值1</li>
<li><code>page_num</code>: 每页显示数据条数, 默认值12</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;list&quot;:[
            {
                &quot;id&quot;:&quot;1&quot;,
                &quot;username&quot;:&quot;admin&quot;,
                &quot;password&quot;:&quot;e10adc3949ba59abbe56e057f20f883e&quot;,
                &quot;avatar&quot;:&quot;\/uploads\/avatar\/thumb_5ed725f1e89d0.jpg&quot;,
                &quot;nickname&quot;:&quot;duans&quot;,
                &quot;tel&quot;:&quot;18629687888&quot;,
                &quot;email&quot;:&quot;duans@dunas.top&quot;,
                &quot;status&quot;:&quot;1&quot;,
                &quot;motto&quot;:&quot;不如就把你交还于茫茫人海, 就当风没吹过, 你没来过&quot;,
                &quot;createtime&quot;:&quot;2020-05-05 17:17:38&quot;
            },
            {
                &quot;id&quot;:&quot;3&quot;,
                &quot;username&quot;:&quot;duans&quot;,
                &quot;password&quot;:&quot;e10adc3949ba59abbe56e057f20f883e&quot;,
                &quot;avatar&quot;:null,
                &quot;nickname&quot;:&quot;duans&quot;,
                &quot;tel&quot;:null,
                &quot;email&quot;:null,
                &quot;status&quot;:&quot;1&quot;,
                &quot;motto&quot;:&quot;时间最廉价的就是一事无成的温柔和一贫如洗的真心&quot;,
                &quot;createtime&quot;:&quot;2020-06-01 12:17:02&quot;
            },
            {
                &quot;id&quot;:&quot;4&quot;,
                &quot;username&quot;:&quot;bruce&quot;,
                &quot;password&quot;:&quot;e10adc3949ba59abbe56e057f20f883e&quot;,
                &quot;avatar&quot;:null,
                &quot;nickname&quot;:null,
                &quot;tel&quot;:null,
                &quot;email&quot;:null,
                &quot;status&quot;:&quot;1&quot;,
                &quot;motto&quot;:null,
                &quot;createtime&quot;:null
            },
            {
                &quot;id&quot;:&quot;5&quot;,
                &quot;username&quot;:&quot;jack&quot;,
                &quot;password&quot;:&quot;96e79218965eb72c92a549dd5a330112&quot;,
                &quot;avatar&quot;:&quot;\/uploads\/avatar\/thumb_5ee30467b3e4b.jpg&quot;,
                &quot;nickname&quot;:&quot;jack01&quot;,
                &quot;tel&quot;:&quot;18710950888&quot;,
                &quot;email&quot;:&quot;duans@qq.com&quot;,
                &quot;status&quot;:&quot;1&quot;,
                &quot;motto&quot;:&quot;好雨知时节, 当春乃发生&quot;,
                &quot;createtime&quot;:null
            },
            {
                &quot;id&quot;:&quot;6&quot;,
                &quot;username&quot;:&quot;robin&quot;,
                &quot;password&quot;:&quot;e10adc3949ba59abbe56e057f20f883e&quot;,
                &quot;avatar&quot;:null,
                &quot;nickname&quot;:null,
                &quot;tel&quot;:null,
                &quot;email&quot;:null,
                &quot;status&quot;:&quot;1&quot;,
                &quot;motto&quot;:null,
                &quot;createtime&quot;:null
            }],
        &quot;total&quot;:&quot;5&quot;
    }
}
</code></pre>
</li>
</ul>
<h3 id="-">新增会员</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=user&amp;a=add</code></p>
</li>
<li><p>请求方式: <code>POST</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>username</code>: 登录账号</li>
<li><code>password</code>: 登录密码</li>
<li><code>nickname</code>: 昵称</li>
<li><code>tel</code>: 联系电话</li>
<li><code>email</code>: 电子邮箱</li>
<li>avatar: 头像</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">更新会员</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=user&amp;a=update&amp;id=:id</code></p>
</li>
<li><p>请求方式: <code>POST</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>username</code>: 登录账号</li>
<li><code>password</code>: 登录密码</li>
<li><code>nickname</code>: 昵称</li>
<li><code>tel</code>: 联系电话</li>
<li><code>email</code>: 电子邮箱</li>
<li>avatar: 头像</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">会员详情</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=user&amp;a=detail</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数:</p>
<ul>
<li>id: 管理员id</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;id&quot;:&quot;1&quot;,
        &quot;username&quot;:&quot;admin&quot;,
        &quot;password&quot;:&quot;e10adc3949ba59abbe56e057f20f883e&quot;,
        &quot;avatar&quot;:&quot;\/uploads\/avatar\/thumb_5ed725f1e89d0.jpg&quot;,
        &quot;nickname&quot;:&quot;duans&quot;,
        &quot;tel&quot;:&quot;18629687888&quot;,
        &quot;email&quot;:&quot;duans@dunas.top&quot;,
        &quot;status&quot;:&quot;1&quot;,
        &quot;motto&quot;:&quot;不如就把你交还于茫茫人海, 就当风没吹过, 你没来过&quot;,
        &quot;createtime&quot;:&quot;2020-05-05 17:17:38&quot;
    }
}

</code></pre>
</li>
</ul>
<h2 id="-">文件上传模块</h2>
<h3 id="-">图片上传</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=upload&amp;a=img</code></p>
</li>
<li><p>请求方式: <code>POST</code></p>
</li>
<li><p>参数: <code>form-data</code></p>
<ul>
<li><code>img</code>: 图片文件</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;上传成功&quot;,
    &quot;url&quot;:&quot;http:\/\/admin.api.com\/uploads\/20200704\/5f007a22930a9.png&quot;,
    &quot;thumb_url&quot;:&quot;http:\/\/admin.api.com\/uploads\/20200704\/thumb_5f007a22930a9.png&quot;
}

</code></pre>
</li>
</ul>
<h2 id="-">系统配置模块</h2>
<h3 id="-">获取系统配置</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=setting&amp;a=index</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数: 无</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;id&quot;:&quot;1&quot;,
        &quot;title&quot;:&quot;青鸟优品&quot;,
        &quot;keywords&quot;:&quot;网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,&quot;,
        &quot;description&quot;:&quot;专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母婴、图书、食品等数万个品牌优质商品.便捷、诚信的服务，为您提供愉悦的网上购物体验!&quot;,
        &quot;logo&quot;:null,
        &quot;tel&quot;:&quot;029-88212666&quot;,
        &quot;email&quot;:&quot;contact@braccp.com &quot;,
        &quot;address&quot;:&quot;西安市雁塔区电子一路 石油大学北门工会楼二层&quot;,
        &quot;copyright&quot;:&quot;Copyright 2019 by www.braccp.com 北京畅想唯优信息技术有限公司 All rights reserved.&quot;,
        &quot;beian&quot;:&quot;陕ICP备19013769号-1&quot;,
        &quot;status&quot;:&quot;1&quot;
    }
}

</code></pre>
</li>
</ul>
<h3 id="-">更新系统配置</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=setting&amp;a=index</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数: 无</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h2 id="-">轮播图模块</h2>
<h3 id="-">轮播图列表</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=slider&amp;a=lists</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>page</code>: 页码</li>
<li><code>page_num</code>: 每页显示数据条数, 默认为12;</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;list&quot;:[
            {
                &quot;id&quot;:&quot;1&quot;,
                &quot;page&quot;:&quot;index&quot;,
                &quot;status&quot;:&quot;1&quot;,
                &quot;img&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/slides\/01.jpg&quot;,
                &quot;url&quot;:&quot;#&quot;
            },
            {
                &quot;id&quot;:&quot;2&quot;,
                &quot;page&quot;:&quot;index&quot;,
                &quot;status&quot;:&quot;1&quot;,
                &quot;img&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/slides\/02.webp&quot;,
                &quot;url&quot;:&quot;#&quot;
            },
            {
                &quot;id&quot;:&quot;3&quot;,
                &quot;page&quot;:&quot;index&quot;,
                &quot;status&quot;:&quot;1&quot;,
                &quot;img&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/slides\/03.webp&quot;,
                &quot;url&quot;:&quot;#&quot;
            },
            {
                &quot;id&quot;:&quot;4&quot;,
                &quot;page&quot;:&quot;index&quot;,
                &quot;status&quot;:&quot;1&quot;,
                &quot;img&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/slides\/04.webp&quot;,
                &quot;url&quot;:&quot;#&quot;
            },
            {
                &quot;id&quot;:&quot;5&quot;,
                &quot;page&quot;:&quot;index&quot;,
                &quot;status&quot;:&quot;1&quot;,
                &quot;img&quot;:&quot;http:\/\/vue-admin-server.com\/uploads\/slides\/05.webp&quot;,
                &quot;url&quot;:&quot;#&quot;
            }],
        &quot;total&quot;:&quot;5&quot;
    }
}

</code></pre>
</li>
</ul>
<h3 id="-">新增轮播图</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=slider&amp;a=add</code></p>
</li>
<li><p>请求方式: <code>POST</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>name</code>: 轮播图名称</li>
<li><code>title</code>: 标题</li>
<li><code>img</code>: 图片地址</li>
<li><code>page</code>: 轮播图显示页面</li>
<li><code>status</code>: 状态(1正常,2禁用)</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">更新轮播图</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=slider&amp;a=update&amp;id=:id</code></p>
</li>
<li><p>请求方式: <code>POST</code></p>
</li>
<li><p>参数: </p>
<ul>
<li><code>name</code>: 轮播图名称</li>
<li><code>title</code>: 标题</li>
<li><code>img</code>: 图片地址</li>
<li><code>page</code>: 轮播图显示页面</li>
<li><code>status</code>: 状态(1正常,2禁用)</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">删除轮播图</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=slider&amp;a=del</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数:  无</p>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;
}
</code></pre>
</li>
</ul>
<h3 id="-">轮播图详情</h3>
<ul>
<li><p>接口地址: <code>/apis/index.php?c=slider&amp;a=detail</code></p>
</li>
<li><p>请求方式: <code>GET</code></p>
</li>
<li><p>参数: </p>
<ul>
<li>id: 轮播图id</li>
</ul>
</li>
<li><p>返回数据: <code>json</code></p>
<pre><code class="lang-json">{
    &quot;errcode&quot;:0,
    &quot;msg&quot;:&quot;success&quot;,
    &quot;data&quot;:{
        &quot;id&quot;:&quot;1&quot;,
        &quot;page&quot;:&quot;index&quot;,
        &quot;status&quot;:&quot;1&quot;,
        &quot;img&quot;:&quot;\/uploads\/slides\/01.jpg&quot;,
        &quot;url&quot;:&quot;#&quot;
    }
}

</code></pre>
</li>
</ul>

          	</article>
        </div>
		</div>
  </body>
</html>
<script type="text/javascript" src="toc/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="toc/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="toc/js/ztree_toc.js"></script>
<script type="text/javascript" src="toc_conf.js"></script>

<SCRIPT type="text/javascript" >
<!--
$(document).ready(function(){
    var css_conf = eval(markdown_panel_style);
    $('#readme').css(css_conf)
    
    var conf = eval(jquery_ztree_toc_opts);
		$('#tree').ztree_toc(conf);
});
//-->
</SCRIPT>